

public class ReadThreadClass implements Runnable{
    private UpdateData.DownLoad.doInterFace doInterFace;

    public ReadThreadClass(UpdateData.DownLoad.doInterFace doInterFace) {
        this.doInterFace = doInterFace;
    }

    public void run() {
        if (this.doInterFace instanceof UpdateData.DoClass){
            UpdateData.DoClass doClass = (UpdateData.DoClass) this.doInterFace;
            while (doClass.isDoSign()){
                System.out.println(String.format("%d -- %d : %s"
                        ,doClass.getTaskCount()
                        ,doClass.getProgress()
                        ,doClass.getMessage()));
            }
        }
    }

}
